<div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black">VeeCMF</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
            <i class="layui-icon layui-icon-spread-left"></i>
        </li>
        {foreach $layout_menu_list as $key=>$vo }
            {eq name="vo['position']" value="1"}
            {eq name="vo['show']" value="1"}
            {eq name="vo['status']" value="1"}
                {if is_array($promise_menu_id) == true}
                {foreach $promise_menu_id as $idx=>$menu_id }
                    {eq name="$menu_id" value="$vo.id"}
                        <li class="layui-nav-item layui-hide-xs"><a href="{$vo.route}">{$vo.title}</a></li>
                    {/eq}
                {/foreach}
                {else/}
                    <li class="layui-nav-item layui-hide-xs"><a href="{$vo.route}">{$vo.title}</a></li>
                {/if}
            {/eq}
            {/eq}
            {/eq}
        {/foreach}
<!--        <li class="layui-nav-item">-->
<!--            <a href="javascript:;">工具</a>-->
<!--            <dl class="layui-nav-child">-->
<!--                <dd><a href="">尚未开发</a></dd>-->
<!--            </dl>-->
<!--        </li>-->
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-md-inline-block">
            <a href="javascript:;">
                <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                {$rootData['root_name']}
            </a>
            <dl class="layui-nav-child">
                <dd><a href="">个人资料</a></dd>
                <dd><a href="">个人设置</a></dd>
                <dd><a href="/admin/login/logout">退出登录</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
            <a href="javascript:;">
                <i class="layui-icon layui-icon-more-vertical"></i>
            </a>
        </li>
    </ul>
</div>

<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
            {foreach $layout_menu_list as $key=>$vo }
                {eq name="vo['position']" value="0"}
                {eq name="vo['show']" value="1"}
                {eq name="vo['status']" value="1"}
                    {if is_array($promise_menu_id) == true}
                    {foreach $promise_menu_id as $idx=>$menu_id }
                        {eq name="$menu_id" value="$vo.id"}
                            <li class="layui-nav-item">
                                <a class="" href="{$vo['route']}">{$vo['title']}</a>
                                <!--二级菜单-->
                                {if isset($vo['child'])}
                                    {foreach $vo['child'] as $c_key=>$c_vo }
                                        {eq name="c_vo['show']" value="1"}
                                        {eq name="c_vo['status']" value="1"}
                                            {foreach $promise_menu_id as $idx=>$menu_id }
                                                {eq name="$menu_id" value="$c_vo.id"}
                                                    <dl class="layui-nav-child">
                                                        <dd><a href="{$c_vo['route']}">{$c_vo['title']}</a></dd>
                                                    </dl>
                                                {/eq}
                                            {/foreach}
                                            <!--这是三级菜单，这里没有做样式，如果有数据可无限循环下去-->
                                            {if isset($c_vo['child'])}
                                                {foreach $c_vo['child'] as $c_key=>$cc_vo }
                                                    {eq name="cc_vo['show']" value="1"}
                                                    {eq name="cc_vo['status']" value="1"}
                                                        {foreach $promise_menu_id as $idx=>$menu_id }
                                                            {eq name="$menu_id" value="$cc_vo.id"}
                                                                <dl class="layui-nav-child">
                                                                    <dd><a href="{$cc_vo['route']}">{$cc_vo['title']}</a></dd>
                                                                </dl>
                                                            {/eq}
                                                        {/foreach}
                                                    {/eq}
                                                    {/eq}
                                                {/foreach}
                                            {/if}
                                        {/eq}
                                        {/eq}
                                    {/foreach}
                                {/if}
                            </li>
                        {/eq}
                    {/foreach}
                    {/if}
                {/eq}
                {/eq}
                {/eq}
            {/foreach}
            <li class="layui-nav-item"><a href="http://1.117.149.125:81/blog">关于我们</a></li>
        </ul>
    </div>
</div>